SG Window | Window Object |
ExStyle Property |
See Also Properties Methods Events Constants Error Codes |
Manipulates window extended style flags.
object.ExStyle
The object is expression that evaluates to the Window object.
Window extended styles are boolean constants which define the appearance and behavior of windows. SG Window defines style constants in the WinStyleEx enumeration.
Folowing VB example displays captions of all top level windows that accepts drag-drop files:
Dim w As New SGWindow.Window Dim child As SGWindow.Window w.AttachDesktop For Each child In w.Children If (child.ExStyle And WS_EX_ACCEPTFILES) <> 0 Then MsgBox child.Text End If Next
This is same example but modified for VBScript:
Const ws_EX_ACCEPTFILES = &H00000010& Dim w, child Set w = CreateObject("SGWindow.Window") w.AttachDesktop For Each child In w.Children If (child.ExStyle And ws_EX_ACCEPTFILES) <> 0 Then MsgBox child.Text End If Next